package com.king.juc.ync;

import lombok.extern.slf4j.Slf4j;

/**
 * 同步，须等待
 * @author king
 * @date 2020/9/1 13:43
 */
@Slf4j(topic = "c.Sync")
public class Sync {
    public static void main(String[] args) {
        int i = 1;
        int count = 100000;
        long start = System.currentTimeMillis();
        while(i < count){ ++i; }
        log.debug("time: " + (System.currentTimeMillis() - start));

        log.debug("同步运行");
    }
}
